let product = { price: 5, quantity: 2 };

let proxiedproduct = new Proxy(product, {
  get(target, key) {
    console.log('get');
    return target[key];
  }
});

console.log(proxiedproduct.price);

// get
// 5
